<%--
  Created by IntelliJ IDEA.
  User: HuangLiting
  Date: 2018/5/23
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html ng-app="smApp">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="css/admin.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/houtai.css"/>
    <script type="text/javascript" src="js/libs/modernizr.min.js"></script>
</head>
<body ng-controller="smController">
<jsp:include page="/header.jsp"></jsp:include>
<div class="container clearfix">
    <jsp:include page="/leftBar.jsp"></jsp:include>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#" color="#white">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">教学日历</span></div>
        </div>
        <div class="new_function_area">
            <blockquote class="layui-elem-quote">
                <a href="/addSemesterUrl.do" class="layui-btn layui-btn-small" id="add">
                    <i class="layui-icon">&#xe608;</i> 新增学期
                </a>
                <div class="input_search">
                    <select class="common-text required" name="semester-select" id="semester-select" required="">
                        <option value="" disabled="" selected="">请选择学期</option>
                        <option  ng-repeat="se in semesters" value="{{se.semesterId}}" ng-bind="se.semesterName"></option>
                    </select>
                </div>
            </blockquote>
            <fieldset class="layui-elem-field">
                <legend>学期列表</legend>

                <div class="layui-field-box layui-form">
                    <table class="layui-table admin-table fix-table-layout">
                        <thead>
                        <tr>
                            <th>学期编号</th>
                            <th>学期名</th>
                            <th>学期开始时间</th>
                            <th>学期结束时间</th>
                            <th>周次数</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="scontent">
                            <tr ng-if="semester.semesterId!=null">
                                <td ng-bind="semester.semesterId"></td>
                                <td ng-bind="semester.semesterName"></td>
                                <td ng-bind="semester.semesterStartDate"></td>
                                <td ng-bind="semester.semesterEndDate"></td>
                                <td ng-bind="semester.weekQuantity"></td>
                                <td>
                                    <a ng-click="deleteSemesterBtn()" href="javascript:;">删除</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <fieldset class="layui-elem-field">
                <legend>周次列表</legend>
                <div class="layui-field-box layui-form">
                    <table class="layui-table admin-table fix-table-layout">
                        <thead>
                        <tr>
                            <th>周次编号</th>
                            <th>周次名</th>
                            <th>周次开始时间</th>
                            <th>周次结束时间</th>
                        </tr>
                        </thead>
                        <tbody id="content">
                            <tr ng-repeat="msg in weeks">
                                <td ng-bind="msg.weekid"></td>
                                <td ng-bind="'第'+msg.weekNum+'周'"></td>
                                <td ng-bind="msg.weekStartDate"></td>
                                <td ng-bind="msg.weekEndDate"></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
    <!--/main-->
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/semestermsg.js"></script>
</html>
